package com.wgts.wgts.netmodle.resp;

import android.os.Parcel;
import android.os.Parcelable;

public class AppUpdateEntity implements Parcelable {
    public int upgrade;
    public int forceUpgrade;
    public String version;
    public String url;
    public String upgradeLog;

    public AppUpdateEntity(){}

    protected AppUpdateEntity(Parcel in) {
        upgrade = in.readInt();
        forceUpgrade = in.readInt();
        version = in.readString();
        url = in.readString();
        upgradeLog = in.readString();
    }

    public static final Creator<AppUpdateEntity> CREATOR = new Creator<AppUpdateEntity>() {
        @Override
        public AppUpdateEntity createFromParcel(Parcel in) {
            return new AppUpdateEntity(in);
        }

        @Override
        public AppUpdateEntity[] newArray(int size) {
            return new AppUpdateEntity[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(upgrade);
        dest.writeInt(forceUpgrade);
        dest.writeString(version);
        dest.writeString(url);
        dest.writeString(upgradeLog);
    }
}
